<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>进程调度</title>
    <style>
    .container {
        margin: 0 auto;
        text-align: center;
    }

    table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 20px;
    }

    table th {
        border: 1px solid;
    }

    table tr {
        border: 1px solid;
        height: 26px;
    }

    table tr td {
        border: 1px solid;
        text-align: center;
    }
    
    table tr td:first-child {
        font-weight: bold;
    }

    .table-title {
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 22px;
        font-weight: bold;
    }

    #unarrived-pcb-table {
        background: #FFD9C9;
    }

    #wait-pcb-table {
        background: #D0FDDD;
    }

    #running-pcb-table {
        background: #E0FFFF;
    }

    #finished-pcb-table {
        background: #E0FFC0;
    }
    
    .btn-list {
        width: 400px;
        display: flex;
        margin: 0 auto;
    }
    .btn {
        height: 40px;
        font-size: 16px;
        background: #E0FFC0;
        flex: 1;
        margin-bottom: 10px;
    }

    .btn.active {
        background: #EBEDEF;
    }
    .btn:hover {
        border: 2px solid;
        cursor: pointer;
    }

    </style>
</head>

<body>
    <div class="container">
        <div class="btn-list">
            <button class="btn sjf active">短进程优先</button>
            <button class="btn rr">时间片轮转</button>
            <button class="btn hrrn">高相应比优先</button>
        </div>
        <span class="table-title">未到达队列</span>
        <table id="unarrived-pcb-table">
        </table>
        <span class="table-title">就绪队列</span>
        <table id="wait-pcb-table">
        </table>
        <span class="table-title">正在运行</span>
        <table id="running-pcb-table">
        </table>
        <span class="table-title">已完成队列</span>
        <table id="finished-pcb-table">
        </table>

        <h3>运行时间：<span id="runtime"></span>秒</h3>
        <h3>时间片：<span id="timeSlice"></span></h3>
        <h3>平均周转时间：<span id="avgTurnoverTime"></span></h3>
    </div>
    <script type="text/javascript" src="../source/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="index.js"></script>
</body>

</html>